from qgis.core import QgsApplication
from qgis.core import QgsVectorLayer, QgsFeature

qgis_path = r"C:\Users\yanzhao\miniconda3\envs\qgis\Library\bin"
QgsApplication.setPrefixPath(qgis_path, True)
qgs = QgsApplication([], False)
qgs.initQgis()

vlayer = QgsVectorLayer(r"D:\Dataset\行政边界矢量数据（省市县乡镇）\省市县行政区划矢量数据2021\省.shp", "省", "ogr")
for feature in vlayer.getFeatures():
    feature: QgsFeature
    geom = feature.geometry()
    geom.boundingBox()
    print(feature.id())

qgs.exitQgis()